<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
    <html>
        <head>
			<!-- CSS -->
			<link href="tpl.css" rel="stylesheet"/>
        </head>
        <body>
            <div id="container" class="ltr"> 
				
				<header id="header" class="info">
					<br/>
					<center>
					<h2>
            <xsl:value-of select="Ficha/@Nombre" /></h2>
					</center>
					<div>
            <xsl:value-of select="Ficha/@Descripcion" /></div>
					
				</header>
				<ul>
					<xsl:for-each select="Ficha/Preguntas/Pregunta">
					   <li  class="notranslate      ">
					            <!-- 
							     <label class="desc" id="title426" for="Field426">								   
								 </label>
								 -->
								 <fieldset>
								     <legend id="title430" class="desc">
											<span style="font-family:sans-serif;">
												<xsl:value-of select="@Item"  />.-
											</span>
											<xsl:value-of select="@Enunciado" />
									</legend>
									 <div>
										
												
												<xsl:choose>
													<xsl:when test="@Tipo='MULTIPLE'">
													
														<xsl:for-each select="Opciones/Opcion">
														    <span>															
																<xsl:choose>
																	<xsl:when test="@Respuesta='true'">
																		<input id="Field430_0"  class="field radio" type="checkbox" checked="true"  disabled="true">   
																			<xsl:attribute name="name">
																				<xsl:value-of select="@Codigo" />
																			</xsl:attribute>
																		</input>
																		
																   </xsl:when>
																	<xsl:when test="@Respuesta='false'">
																		<input id="Field430_0" class="field radio" type="checkbox"  disabled="true">	   
																			<xsl:attribute name="name">
																				<xsl:value-of select="@Codigo" />
																			</xsl:attribute>
																		</input>
																	</xsl:when>
																</xsl:choose>													
																
																<label class="choice">
																	<xsl:value-of select="@Nombre" />
																
																	<i>
																		<xsl:value-of select="@Otro"  />
																	</i>
																</label>
																
															</span> 
														 </xsl:for-each>
													</xsl:when>

													<xsl:when test="@Tipo='UNICA'">
														 <xsl:for-each select="Opciones/Opcion">
														    <span>
															   <xsl:choose>
																	<xsl:when test="@Respuesta='true'">
																		<input  class="field radio" type="radio" checked="true"  disabled="true">
                                                                            <xsl:attribute name="name">
																				<xsl:value-of select="@Item" />
																			  </xsl:attribute>
																		</input>																		
																   </xsl:when>
																	<xsl:when test="@Respuesta='false'">
																		<input  name="Field430" class="field radio" type="radio"  disabled="true">
                                        <xsl:attribute name="name">
																				<xsl:value-of select="@Item" />
																			  </xsl:attribute>
																		</input>																		
																	</xsl:when>
																</xsl:choose>
															
																<label class="choice">
																	<xsl:value-of select="@Nombre" />																
																	<i>
																		<xsl:value-of select="@Otro"  />
																	</i>
																</label>
																
															</span> 
														 </xsl:for-each>
													</xsl:when>
											  </xsl:choose> 
											
										
									 </div>
								 </fieldset>
							
					    </li>
					</xsl:for-each>
				</ul>
			</div>
 
        </body>
    </html>
</xsl:template>
</xsl:stylesheet>